Enable more customization for which prompt components gepa can optimize#826
Draft
Enable more customization for which prompt components gepa can optimize#826
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Previously, GEPA could only optimized system prompts that were defined in
env.system_prompt. Now, we can optimize multiple prompt components, as well as dynamically loaded system prompts (like inrlm_env.py). We can also optimize env_groups as long as each environment exposes the same prompt components and starting prompts for those components. We can also optimize tool defs as well. The user can see which components are optimizable byvf-gepa <env> --see-componentsand specify which components to optimize with--componentsEnvironments are now responsible for exposing prompt components. Default is exposing
self.system_promptand the tools registered inself.oai_tools.wordle:

rlm_secrets:

Type of Change
Testing
uv run pytestlocally.Checklist
Additional Notes